package net.shopxx.service.impl;

import javax.annotation.Resource;

import net.shopxx.bean.Pager;
import net.shopxx.dao.ProductCommentDao;
import net.shopxx.entity.Member;
import net.shopxx.entity.Product;
import net.shopxx.entity.ProductComment;
import net.shopxx.service.ProductCommentService;

import org.springframework.stereotype.Service;

/**
 * Service实现类 - 产品评论
 */

@Service
public class ProductCommentServiceImpl extends BaseServiceImpl<ProductComment, String> implements ProductCommentService {

	@Resource
	private ProductCommentDao productCommentDao;
	@Resource
	public void setBaseDao(ProductCommentDao productCommentDao) {
		super.setBaseDao(productCommentDao);
	}
	

	@Override
	public Pager getMemberCommentPager(Member member, Pager pager) {
		return productCommentDao.getMemberCommentPager(member,pager);
	}
	@Override
	public Pager getProductCommentPager(Product product, Pager pager) {
		return productCommentDao.getProductCommentPager(product,pager);
	}


	@Override
	public Pager getMemberOwnCommentPager(Member member, Pager pager) {
		return productCommentDao.getMemberOwnCommentPager(member,pager);
	}
	

}